export interface Word {
    expand(dictionary:Dictionary):Promise<string[]>;
}
export interface Dictionary {
    lookup(word:string):Promise<Word|undefined>;
}
export class OpCode implements Word {
    constructor(public code:string) {
    }
    async expand(dictionary:Dictionary):Promise<string[]> {
        return [this.code];
    }
}
